<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>Audio only stream example</title>

    <script src="../../dist/dash.all.debug.js"></script>
    <!--dash.all.min.js should be used in production over dash.all.debug.js
        Debug files are not compressed or obfuscated making the file size much larger compared with dash.all.min.js-->
    <!--<script src="../../dist/dash.all.min.js"></script>-->

    <script class="code">
        function init() {
            var audio,
                player,
                url = "https://vm2.dashif.org/dash/vod/testpic_2s/audio.mpd";

            audio = document.querySelector("audio");
            player = dashjs.MediaPlayer().create();
            player.initialize(audio, url, true);
        }
    </script>
</head>
<body>
<div>
    <audio></audio>
</div>
<script>
    document.addEventListener("DOMContentLoaded", function () {
        init();
    });
</script>
<script src="../highlighter.js"></script>
</body>
</html>


